package ptaTest2;

import java.util.*;
enum Grade {A,B,C,D,E};
public class Test26 {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner in =new Scanner(System.in);
		while(in.hasNext())
		{
			int score=in.nextInt();
			int zhuan=0;
			Grade dengji=getGrade(score);
			if(dengji==Grade.A)
				zhuan=1;
			else if(dengji==Grade.B)
				zhuan=2;
			else if(dengji==Grade.C)
				zhuan=3;
			else if(dengji==Grade.D)
				zhuan=4;
			else if(dengji==Grade.E)
				zhuan=5;
			switch(zhuan)
			{
			case 1:System.out.println("Excellent");break;
			case 2:System.out.println("Good");break;
			case 3:System.out.println("Average");break;
			case 4:System.out.println("Fair");break;
			case 5:System.out.println("Poor");break;
			default:break;
			}
			printGradeInfo(dengji);
		}

	}

	private static Grade getGrade(int score) {
		Grade dengji;
		if(score>=90&&score<=100)
			dengji=Grade.A;
		else if(score>=80&&score<90)
			dengji=Grade.B;
		else if(score>=70&&score<80)
			dengji=Grade.C;
		else if(score>=60&&score<70)
			dengji=Grade.D;
		else 
			dengji=Grade.E;
		return dengji;
	}
	public static void printGradeInfo(Grade grade){
	       System.out.println("class name="+Grade.class);
	       System.out.println("grade value="+grade);
	}
}
